var pageii = null;
function personEdit(personId) {
    pageii = layer.open({
        type: 2,
        title: "人员编辑",
        area: ['430px', '500px'],
        fixed: true,
        content: '/personManage/personEdit?personId=' + personId
    });
}
function personDel(personId) {
    layer.confirm('是否删除用户?', function (index) {
        layer.close(index);
        $.ajax({
            url: "/personManage/deletePerson?personId=" + personId,
            method: "get",
            dataType: "text",
            success: function (result) {
                if (result == "success") {
                    layer.alert('删除成功！', 3);
                    location.reload();
                } else {
                    layer.alert('删除失败！', 3);
                }
            }
        });
    });

}




